package com.beidu.lottery.call.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * MQ消费记录表
 * </p>
 *
 * @author 北渡
 * @since 2023-10-17
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("mq_message_log")
@ApiModel(value = "MQMessageLog对象", description = "MQ消费记录表")
public class MQMessageLog implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键ID")
    private String id;

    @ApiModelProperty(value = "消息主题")
    private String topic;

    @ApiModelProperty(value = "消息标签")
    private String tag;

    @ApiModelProperty(value = "消息体")
    private String body;

    @ApiModelProperty(value = "状态", notes = "1:success, 0:fail")
    private String status;

    @ApiModelProperty(value = "创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createdDate;

    @ApiModelProperty(value = "更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime updatedDate;

}
